-- GENERATED SPELL FOR [Garwal] --


function spell0_24277(pUnit, Event) --@Gnaw Bone,n/a--
pUnit:FullCastSpellOnTarget(50046,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24277', 536, 1)
end

function spell1_24277(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(13443,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24277', 15000, 1)
end

function spell2_24277(pUnit, Event) --@Swipe,n/a--
pUnit:FullCastSpellOnTarget(31279,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24277', 542, 1)
end

function spell3_24277(pUnit, Event) --@Wide Swipe,n/a--
pUnit:FullCastSpellOnTarget(6749,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24277', 5000, 1)
end

function Sorts_24277(pUnit, Event)
local choix_sorts_24277 = math.random(0, 3)
if choix_sorts_24277 == 0 then
pUnit:RegisterEvent('spell0_24277', 1, 1)
end
if choix_sorts_24277 == 1 then
pUnit:RegisterEvent('spell1_24277', 1, 1)
end
if choix_sorts_24277 == 2 then
pUnit:RegisterEvent('spell2_24277', 1, 1)
end
if choix_sorts_24277 == 3 then
pUnit:RegisterEvent('spell3_24277', 1, 1)
end
end

function mob24277_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24277', math.random(1500, 3000), 1)
end

function mob24277_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24277_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24277_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24277, 1, 'mob24277_Action')
RegisterUnitEvent(24277, 2, 'mob24277_Leave')
RegisterUnitEvent(24277, 3, 'mob24277_Kill')
RegisterUnitEvent(24277, 4, 'mob24277_Die')
